package com.manage.po;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "menu")
public class Menu implements Serializable{

	private static final long serialVersionUID = 7000516515889474376L;
	@Id
	@Column(name = "id", unique = true, nullable = false)
	private int id;
	@Column(name = "parentno")
	private int parentno;
	@Column(name = "name")
	private String name;
	@Column(name = "url")
	private String url;
	@Column(name = "pageno")
	private String pageno;
	@Column(name = "isleaf")
	private byte isleaf;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getParentno() {
		return parentno;
	}

	public void setParentno(int parentno) {
		this.parentno = parentno;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getPageno() {
		return pageno;
	}

	public void setPageno(String pageno) {
		this.pageno = pageno;
	}

	public byte getIsleaf() {
		return isleaf;
	}

	public void setIsleaf(byte isleaf) {
		this.isleaf = isleaf;
	}
}
